require 'active_record'
require 'active_support/core_ext/time/conversions'
require 'require_all'
require 'yaml'

Time::DATE_FORMATS.merge!({
  :default => '%Y-%m-%d %H:%M:%S'
})

$config = YAML.load_file('./config/application.yml')

ActiveRecord::Base.establish_connection($config['database'])

require_all 'lib/**/*.rb'